#ifndef SELECTSUSPEND_H
#define SELECTSUSPEND_H
#define NUM_OF_SUSPEND 6

#include <QWidget>
#include <QMessageBox>
#include "sprocess.h"

namespace Ui {
class SelectSuspend;
}

class SelectSuspend : public QWidget
{
    Q_OBJECT
signals:
    void selectok(SProcess *selected);
public:
    explicit SelectSuspend(QWidget *parent = 0);
    ~SelectSuspend();
    void initSuspend(int numready, SProcess **ready,SProcess *running);
    void init();
    void initTable();
    SProcess *searchProcs(QString PID, int pri, int tim);

private slots:
    void on_yes_clicked();

private:
    Ui::SelectSuspend *ui;
    SProcess *suspend[NUM_OF_SUSPEND];
    int max_of_suspend;
};

#endif // SELECTSUSPEND_H
